@extends('admin.public')

@section('content')
    <div class="col-md-12">
        <form data-validate="parsley" action="" method="post">
            {!! csrf_field() !!}
            <section class="panel panel-default">
                <header class="panel-heading">
                    {{ $frame['title'] }}
                    <a href="{{ route('admin.index.versions') }}" class="btn btn-xs btn-default pull-right">版本信息</a>
                </header>
                <div class="panel-body">
                    <p class="text-muted">当前最新版本 : {{ $version }}</p>
                    <div class="form-group pull-in clearfix">
                        <div class="col-sm-4">
                            <label>版本号</label>
                            <input type="text" class="form-control" placeholder="版本号" name="version"
                                   data-required="true">
                        </div>
                        <div class="col-sm-8">
                            <label>标题标题</label>
                            <input type="text" class="form-control" placeholder="标题标题" name="title"
                                   data-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label>版本说明</label>
                        <div id="describe" name="describe" type="text/plain" style="width: 100%;height: 300px;"></div>
                    </div>
                </div>
                <footer class="panel-footer text-right bg-light lter">
                    <button type="submit" class="btn btn-success btn-s-xs">保存</button>
                </footer>
            </section>
        </form>
    </div>

@endsection

@section('js')
    <!-- uediter -->
    <script src="/public/laravel-u-editor/ueditor.config.js"></script>
    <script src="/public/laravel-u-editor/ueditor.all.min.js"></script>
    <script src="/public/laravel-u-editor/lang/zh-cn/zh-cn.js"></script>
    <!-- parsley -->
    <script src="/public/theme/js/parsley/parsley.min.js"></script>
    <script src="/public/theme/js/parsley/parsley.extend.js"></script>
    <script>
        var ue = UE.getEditor('describe');
    </script>
@endsection